<?php

namespace App\Http\Controllers\Api;

use App\apitransifer\CategoryTransformer;
use Illuminate\Http\Request;
use Modules\Shop\Entities\Category;

class CategoryController extends Controller
{
    //获得所有分类接口
    public function categorys(){
        return $this->response->collection(Category::get(),new CategoryTransformer());
    }
}
